home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / swingall.jar / javax / swing / JComponent$KeyboardBinding.class (.txt) < prev    next >
Encoding:
Java Class File  |  1999-07-15  |  1.3 KB  |  39 lines

  1. package javax.swing;
  2.  
  3. import java.awt.event.ActionListener;
  4. import java.io.Serializable;
  5.  
  6. class JComponent$KeyboardBinding implements Serializable {
  7.    ActionListener action;
  8.    String command;
  9.    KeyStroke keyStroke;
  10.    int condition;
  11.  
  12.    JComponent$KeyboardBinding(ActionListener var1, String var2, KeyStroke var3, int var4) {
  13.       this.action = var1;
  14.       this.command = var2;
  15.       this.keyStroke = var3;
  16.       this.condition = var4;
  17.    }
  18.  
  19.    ActionListener getAction() {
  20.       return this.action;
  21.    }
  22.  
  23.    String getCommand() {
  24.       return this.command;
  25.    }
  26.  
  27.    int getCondition() {
  28.       return this.condition;
  29.    }
  30.  
  31.    KeyStroke getKeyStroke() {
  32.       return this.keyStroke;
  33.    }
  34.  
  35.    public String toString() {
  36.       return "KeyBinding (" + this.action + "," + this.keyStroke + "," + this.condition + ")";
  37.    }
  38. }
  39.